home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2000 February / PCW_2_2000.ISO / software / sw / notfall / xsetup.exe / _SETUP.2 / Group3 / XQ Explorer Options.xpl < prev    next >
Encoding:
XSetup plugin  |  1999-10-16  |  3.2 KB  |  105 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Appearance\Explorer\Options"
  5. "NAME"="Explorer Options"
  6. "VERSION"="1.38"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show "File" menu"
  9. "TEXT 2"="Enable fast update"
  10. "TEXT 3"="Wrap long icon-titles"
  11. "TEXT 4"="Always use double-pane Explorer style"
  12. "DESCRIPTION 1"="Option 1: To hide the "File" menu inside the Windows Explorer, deactivate this option."
  13. "DESCRIPTION 2"="Option 2: Enables your open Windows Explorer windows and the desktop screen to refresh more quickly when activated."
  14. "DESCRIPTION 3"="Option 3: Splits long icon names into several small lines rather than one long line which may be displayed truncated"
  15. "DESCRIPTION 4"="Option 4: Causes Windows Explorer to open with a double-pane view rather than the single-pane by default."
  16. "AUTHOR"="Xteq Systems"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  19. "COMMENT 2"="Option DesktopProcess disabled due to problems..."
  20.  
  21.  
  22. sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  23. sV1="NoFileMenu"
  24. sV2="HKLM\System\CurrentControlSet\Control\Update\UpdateMode" 'BINARY!
  25. sV3="HKCU\Control Panel\Desktop\WindowMetrics\IconTitleWrap"
  26.  
  27. 'does anybody where this stuff comes from!?!?!?!
  28. 'AK: askSam(now) 
  29. sExpPath="HKCR\Folder\Shell\Open\ddeexec\@"
  30. sExpDoub="[ExploreFolder(""%l"", %I, %S)]"
  31. sExpNorm="[ViewFolder(""%l"", %I, %S)]"
  32.  
  33.  
  34. 'All settings not used at the momment
  35. 'sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\"
  36. 'sV2="DesktopProcess"
  37. '"DESCRIPTION 2"="Activating "Run Windows Explorer as separate process" to avoid that Desktop, Taskbar and Explorer run in the same process. Note: This option will work on Windows NT only."
  38. '"TEXT 2"="Run Windows Explorer as separate process"
  39. 'Settings from Windows 98 with IE 5
  40. '[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\BrowseNewProcess]
  41. '"BrowseNewProcess"="NO"
  42.  'i=RegReadValue(sP2&sV2)
  43.  'If i=1 then SetUIElement 2,true
  44.  'b=GetUIElement(2)
  45.  'if b=true then
  46.  ' Call RegWriteValue(sp2&sv2,1,2)
  47.  'else
  48.  ' Call RegWriteValue(sp2&sv2,0,2)
  49.  'end if
  50. Sub Plugin_Initialize 
  51.  i=RegReadValue(sp1&sv1)
  52.  If IsEmpty(i) or i=0 then SetUIElement 1,true
  53.  
  54.  b=RegReadValue(sV2)
  55.  if b="00" then SetUIElement 2,true
  56.  
  57.  b=RegReadValue(sV3)
  58.  if b=1 then SetUIElement 3,true 
  59.  
  60.  s=RegReadValue(sExpPath)
  61.  if ucase(s)=ucase(sExpDoub) then SetUIElement 4,true
  62. End Sub
  63.  
  64. Sub Plugin_CheckData(ElementIndex)
  65. End Sub
  66.  
  67. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  68.  b=GetUIElement(1)
  69.  if b=true then
  70.     s=RegReadValue(sp1&sV1)
  71.     if IsEmpty(s)=false then
  72.        Call RegDeleteValue(sp1&sv1)
  73.     end if
  74.  else
  75.     Call RegWriteValue(sp1&sv1,1,2)
  76.  end if
  77.  
  78.  b=GetUIElement(2)
  79.  if b=true then
  80.     Call RegWriteValue(sV2,"00",3)
  81.  else
  82.     Call RegWriteValue(sV2,"01",3)
  83.  end if
  84.  
  85.  b=GetUIElement(3)
  86.  if b=true then
  87.     Call RegWriteValue(sV3,1,2)
  88.  else
  89.     Call RegWriteValue(sV3,0,2)
  90.  end if
  91.  
  92.  b=GetUIElement(4)
  93.  if b=true then
  94.     Call RegWriteValue(sExpPath,sExpDoub,1)
  95.  else
  96.     Call RegWriteValue(sExpPath,sExpNorm,1)
  97.  end if
  98.  
  99.  
  100.  Restart
  101. End Sub
  102.  
  103. Sub Plugin_Terminate 
  104. End Sub
  105.